import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    uni(),
  ],
  server: {
    https: false,
    host: '0.0.0.0',
    proxy: {
      '/wydc': {
        target: 'http://43.136.77.210:11500/', // 后端真实服务地址
        changeOrigin: true,
        // pathRewrite: { '^/wydc': '' } // 去掉 '/wydc' 前缀
      }
    }
  },
})
